package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {


        //重写结构显示
        Student zs = new Student("张三",25,"廊坊","jsd2304","001");

        zs.asyHi() ;

        Teacher ls = new Teacher("张三",22,"山东",8000);

        ls.asyHi() ;

        Doctor ww = new Doctor("王五",55,"河北","医生");

        ww.asyHi() ;








































/*
        Student zs = new Student("张三",25,"廊坊","jsd2304","999");
        zs.eat();
        zs.asyHi();
        zs.sleep();
        Teacher ls = new Teacher("李四",25,"山东",8000);
        ls.eat();
        ls.asyHi();
        ls.sleep();
        ls.teach();
        Doctor ww = new Doctor("王五",5,"海里","医生");
        ww.eat();
        ww.asyHi();
        ww.sleep();
        ww.cut();

*/


    }
}
